const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device,
  lang: state => state.app.lang,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  cacheTagTime: state => state.tagsView.cacheTagTime,
  cacheTagName: state => state.tagsView.cacheTagName,
  token: state => state.user.token,
  userId: state => state.user.userId,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,
  setting: state => state.user.setting,
  permission_routers: state => state.permission.routers,
  addRouters: state => state.permission.addRouters,
  roleBtns: state => state.permission.roleBtns,
  errorLogs: state => state.errorLog.logs,
  sysMsg: state => state.sysMsg,
  roleTypes: state => state.user.roleTypes,
  permCodes: state => state.user.permCodes,
  organId: state => state.user.organId,
  organName: state => state.user.organName,
  userType: state => state.user.userType,
  level: state => state.user.level
}
export default getters
